﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="article.aspx.cs" Inherits="GDIT.page.notice.article" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../css/notice.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="wrapper">

    <div id="notice">

        <div class="title">
            <div class="content"><a href="javascript:history.go(-1);" class="back"></a><span class="titleDetail">
                <asp:Label ID="labTitle" runat="server" Text="Label"></asp:Label></span></div>
        </div>

        <div id="article">
            <div class="content">
                <asp:Literal ID="ltrArticle" runat="server"></asp:Literal>
            </div>
        </div>

    </div>

    <div id="poster">
        <img alt="" src="../../images/notice_right.jpg" />
    </div>

</div>


<asp:HiddenField ID="hdfParm" runat="server" />
<script type="text/javascript">
    function Ready() {
        var titleDetail = GetElementsByClass("titleDetail")[0];

        var hdfParm = document.getElementById("hdfParm");
        var parms = hdfParm.value.split("_");

        if (parms[0] == "bulletin") {
            titleDetail.innerHTML = "通知公告";
        } else if (parms[0] == "information") {
            titleDetail.innerHTML = "校园资讯";
        }
    }
    Ready();



    

    function GetElementsByClass(className) {
        var events = new Array();
        var allEvents = document.getElementsByTagName("*");
        for (var i = 0; i < allEvents.length; i++) {
            var classNames = allEvents[i].className.split(" ");
            for (var j = 0; j < classNames.length; j++) {
                if (classNames[j] == className) {
                    events[events.length] = allEvents[i];
                }
            }
        }
        return events;
    }
</script>



</body>
</html>